<style>
body,html { overflow:hidden}
</style>
</head>
<body>
<script language="javascript">
function challs_flash_update(){
	var a={};
	a.title = "上传文件";
	a.url = '<?php echo url("upload/upload_data",array("session"=>session_id())) ?>'; 
	a.parameter = '';
	a.typefile = ["File ({$type})","{$type}"];
	a.ForceFileNum = 1;
	a.size = {$size};
	a.autoClose = -1;
	a.repeatFile = true;
	a.returnServer = true;
	a.loadFileOrder=true;
	a.ListShowType = 3;
	a.TitleSwitch = false;
	a.autoUpload = false;
	a.adjustOrder = false;
	a.deleteAllShow = false;
	a.isShowUploadButton = true;
	return a;
}

function challs_flash_style(){ //组件颜色样式设置函数
	var a = {};
	
	/*  整体背景颜色样式 */
	a.backgroundColor=['#fff'];	//颜色设置，3个颜色之间过度
	a.backgroundLineColor='#fff';					//组件外边框线颜色
	a.backgroundFontColor='#066AD1';					//组件最下面的文字颜色
	a.backgroundInsideColor='#FFFFFF';					//组件内框背景颜色
	a.backgroundInsideLineColor=['#ccc','#ccc'];	//组件内框线颜色，2个颜色之间过度
	
	/*  按钮颜色样式 */
	a.button_overColor=['#FBDAB5','#f3840d'];			//鼠标移上去时的背景颜色，2个颜色之间过度
	a.button_overLineColor='#e77702';					//鼠标移上去时的边框颜色
	a.button_overFontColor='#ffffff';					//鼠标移上去时的文字颜色
	a.button_outColor=['#fdfdfd','#e8e8e8']; 			//鼠标离开时的背景颜色，2个颜色之间过度
	a.button_outLineColor='#d0d0d0';					//鼠标离开时的边框颜色
	a.button_outFontColor='#333333';					//鼠标离开时的文字颜色
	
	/* 滚动条样式 */	
	a.List_scrollBarColor=0x000000;				//滚动条颜色
	a.List_scrollBarGlowColor=0xcccccc;			//滚动条阴影颜色

	/* 文件列表样式 */
	a.List_backgroundColor='#f5f5f5';					//列表背景色
	a.List_fontColor='#333333';						//列表文字颜色
	a.List_errFontColor='#ff0000';							//列表错误信息文字颜色
	a.List_LineColor='#cccccc';							//列表分割线颜色
	a.List_cancelOverFontColor='#ff0000';				//列表取消文字移上去时颜色
	a.List_cancelOutFontColor='#D76500';				//列表取消文字离开时颜色
	a.List_progressBarLineColor='#B3CDF1';				//进度条边框线颜色
	a.List_progressBarBackgroundColor='#D8E6F7';		//进度条背景颜色
	
	/* 错误提示框样式 */
	a.Err_backgroundColor='#C0D3EB';					//提示框背景色
	a.Err_fontColor='#245891';							//提示框文字颜色
	a.Err_shadowColor='#000000';						//提示框阴影颜色
	return a;
}

var win;
var challs_flash_onCompleteAll = new function(){}; 
var challs_flash_deleteAllFiles = new function(){}; 
var challs_flash_onCompleteData = new function(){}; 
var challs_flash_FormData = new function(){}; 
Do.ready("dialog", function() {
	var win = art.dialog.open.origin;
	window.challs_flash_onCompleteData=function challs_flash_onCompleteData(data){
		var data=eval("("+data+")");
		if(data.status=='y')
		{
			
			$('#file_id',win.document).val($('#file_id',win.document).val()+data.info.id+',');
			$('#{$id}',win.document).val(data.info.url);
		}else{
			art.dialog.tips(data.info, 3);
		}
	}
	
	window.challs_flash_onCompleteAll=function challs_flash_onCompleteAll(a){
		art.dialog.close();
	}
	
	window.challs_flash_FormData=function challs_flash_FormData(a){ // 使用FormID参数时必要函数
		try{
			var value = '';
			var id=document.getElementById(a);
			if(id.type == 'radio'){
				var name = document.getElementsByName(id.name);
				for(var i = 0;i<name.length;i++){
					if(name[i].checked){
						value = name[i].value;
					}
				}
			}else if(id.type == 'checkbox'){
				var name = document.getElementsByName(id.name);
				for(var i = 0;i<name.length;i++){
					if(name[i].checked){
						if(i>0) value+=",";
						value += name[i].value;
					}
				}
			}else if(id.type == 'select-multiple'){
				for(var i=0;i<id.length;i++){
					if(id.options[i].selected){
						if(i>0) value+=",";
						 values += id.options[i].value; 
					}
				}
			}else{
				value = id.value;
			}
			return value;
		 }catch(e){
			return '';
		 }
	}

})
</script>

  <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="615" height="100" id="update" align="middle">
<param name="allowFullScreen" value="false" />
    <param name="allowScriptAccess" value="always" />
	<param name="movie" value="__PUBLIC__/ui/upload/update.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#ffffff" />
    <embed src="__PUBLIC__/ui/upload/update.swf" quality="high" bgcolor="#ffffff" width="615" height="100" name="update" align="middle" allowScriptAccess="always" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
	</object>

</body>
